Skip to content

feat(ui): one lighter dialog surface, a single column for short create dialogs, and 「Create more」 (#35980) - #36038

Merged
objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/project-thread-fpkoyo
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/project-thread-fpkoyo

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgWL2r2CuFr34ENybDB

Fixes #35980

This reverses a development default; the maintainer chose the threshold: six. A create or edit dialog with at most six fields and no declared columns now draws one field per row at the lg size (672px) (ruling of record 7061696632 on #35980, choosing six over the card's proposed eight and over keeping two columns). That reverses the "at least two columns" development default from objectui#12521 and #34607. It does not overturn ruling 6204264665 on objectui#12521 (an undeclared count is the renderer's choice, a declared one is drawn as written): both halves still hold. The number is one constant (DIALOG_SINGLE_COLUMN_MAX_FIELDS in autoLayout.ts). The width change is commit 3612541e (written at eight), reworded in a141be6e and set to six in e86a699e. Seven fields or more, any declared columns, an authored modalSize and a maximized dialog lay out as before.

Clause-②: yes (widening): ModalFormSchema (exported from the @object-ui/plugin-form entry) gains the optional createMore?: boolean, and onSuccess gains an optional second argument { createMore?: boolean }, measured on the built dist/ModalForm.d.ts; @object-ui/i18n's packs gain the key form.createMore. Nothing is removed or narrowed.
Metadata-protocol: none

维护者速读

  • 所有弹出框(新建/编辑表单、删除确认、必填补填框)现在是同一个样子:背后页面只轻轻压暗(亮色 10%),不再模糊,背后内容仍看得清;弹框是白卡(暗色是略亮的深灰),细边加一圈 3px 半透明外圈,圆角 12px,阴影更柔;输入框、下拉、按钮从 40px 降到 32px。手机上仍是全屏,按钮保持 44px 好点。
  • 新建/编辑表单标题 16px,前面带对象图标;内边距 20px。
  • 字段不多(≤6 个)且没声明列数的表单,改成一列、宽 672px(以前是两列 1024px)。≥7 个字段、声明了列数或弹框尺寸、或者点了最大化的,和以前一样。这一条改掉的是 perf(security): batch the derived half of bootstrapSystemCapabilities, unnarrowed #12521/表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607 开发时定的「弹框至少两列」默认值,不推翻裁定 6204264665(没写列数由渲染器定、写了的照写,两条都守住)。阈值按你 11:07 的选择定为 6 个(裁定记录 7061696632);数字是一个常量。
  • 列表上点「新建」(以及相关列表里的子记录新建)的弹框左下有「连续创建」开关:打开后保存不关弹框,表单清空、光标回到第一格,背后列表刷新;关着就和以前一样保存后打开新记录。开关按对象记在这台浏览器里,这就是卡上「按人记住」的做法(同一个人换浏览器要再开一次)。
  • ⌘↵(Windows 上 Ctrl+Enter)保存,按钮上显示按键提示。「取消」按钮保留。
  • 弹框样子现在由弹框组件自己带着,控制台全局的 [role="dialog"] 圆角规则和遮罩模糊规则删掉了。侧边抽屉、弹出菜单不变。

What changes

One dialog surface (@object-ui/components)

  • New src/lib/dialog-surface.ts holds the look: DIALOG_OVERLAY_SURFACE (bg-black/10, dark:bg-black/40, no blur), DIALOG_CONTENT_SURFACE (theme card colour, hairline border-black/[0.07] / dark:border-white/[0.09], sm:rounded-[12px], a 3px translucent outer band drawn as the first shadow so a dialog that clips its overflow cannot cut it, then three soft shadows), and DIALOG_COMPACT_CONTROLS (from sm up, anything drawn at the shared 40px control height draws at 32px; the phone sheet keeps its max-sm: 44px targets).
  • ui/dialog.tsx and ui/alert-dialog.tsx are Shadcn-synced, so they reach the look through declared patches in ui/scripts/shadcn-local-patches.mjs: one import and one class token each on the overlay and the content (dialogSurfacePatches, six patches). The surface classes come before the call site's className, so a caller still wins. alert-dialog had no declared patches; its upstream registry file is vendored as a fixture (alert-dialog.registry.txt, pinned sha256, round-trip checked) like dialog's. shadcn-components.json lists both local edits.
  • custom/mobile-dialog-content.tsx (the form dialog's content) appends the same surface.

Console global CSS (apps/console/src/index.css)

  • The [role="dialog"]:not(.inset-y-0) { border-radius: 1.25rem !important } rule is gone. Popovers (Radix popover content is role="dialog") and the vaul bottom drawer keep their 20px corner through their own containers: [data-radix-popper-content-wrapper] > [role="dialog"], [data-vaul-drawer].
  • The shared floating-surface shadow skips .dialog-surface, because the card draws its own.
  • The bg-black/80 overlay blur rule stays but now reaches only drawer overlays: dialog overlays no longer carry bg-black/80.

The form dialog (@object-ui/plugin-form, ModalForm.tsx)

  • Header: title 16px (text-base) with the object's icon (resolveIcon(objectSchema.icon), aria-hidden); header, body and footer padding 20px from sm up; the footer bar is the card colour, not the page grey.
  • 「Create more」: schema.createMore === true on a create dialog shows a switch in the footer. On, a save calls onSuccess(result, { createMore: true }), clears the form (a keyed remount), clears the dirty flag and puts focus on the first editable field; the dialog stays open. Off, nothing changes. The switch is stored per object in localStorage (modal-form-create-more:<object>, every access guarded), so it is remembered per object in this browser.
  • ⌘↵ / Ctrl+Enter inside the dialog submits the form (requestSubmit, so validation runs), unless a submit or an upload is in flight or the IME is composing. The submit button carries aria-keyshortcuts and shows the keycaps from sm up.
  • Width (3612541e, set to six in e86a699e): dialogDrawsSingleColumn(fieldCount, formColumns, sectionColumns) in autoLayout.ts is true when the laid-out field count is at most six (DIALOG_SINGLE_COLUMN_MAX_FIELDS, ruling 7061696632) and neither the form nor any section declares columns. Then the dialog takes inferModalSize(1) (lg) and the undeclared columns are 1. Not on a maximized dialog, not when modalSize is authored. Neither helper is on the package entry.

Console host (@object-ui/app-shell, AppContent.tsx)

  • The list's 「New」 dialog and a related list's child create pass createMore: true. handleRecordFormSuccess(saved, outcome) with outcome.createMore shows the saved toast and bumps the list's refresh key (not for a child task, which refreshes its own related list), and returns without closing or opening the new record. Without it, the record opens as before.

The object-form renderer (ObjectFormContainer, formType: 'modal'): passes createMore: false, so a page schema's stray createMore (the schema's index signature would carry it through the spread) never turns the switch on; 「Create more」 is a host's opt-in on ModalForm only.

Strings: form.createMore in all eleven packs (zh-Hant.ts regenerated by gen:zh-hant), plus the provider-less default in ModalForm.

Why

Card #35980 (epic #34571): the dialogs read heavy against the page (a blurred 35% overlay, a grey card at 20px, 40px controls, two columns for a four-field form), and a person entering several records had to reopen the dialog each time. The card asks for one lighter surface owned by the dialog components, a narrow column for short forms, and a create dialog that can stay open.

Side effects reviewers should know

  • The compact-controls rule reaches every h-10 element inside a dialog (inputs, select triggers, default and icon buttons, and any other 40px element such as an avatar), not only form controls; a non-square one also gains py-1. The changeset says so.

  • 「⌘↵」 and 「Create more」 are on the flat form only; the master-detail dialog (lines) takes neither. The changeset says so.

  • The dialog-surface class is a contract between @object-ui/components and the console's index.css; both sides carry a comment naming the other.

  • Top and bottom sheets and any custom element with role="dialog" that relied on the old global 20px rule now draw their own corner (bottom drawer and popovers keep 20px through the rule above; the edge-sheet test pins left, right, top and bottom).

  • The outer band is a shadow, with no backdrop blur of its own.

  • Drawer overlays are unchanged.

Tests

  • Changed: apps/console/src/__tests__/edgeSheetSquareCorners-35411.test.tsx: the corner selector names the popper wrapper and the vaul drawer and no part starts with [role="dialog"]; no sheet side is matched; a centred dialog is not matched and carries sm:rounded-[12px].
  • Changed: scripts/__tests__/shadcn-local-patches.test.ts: the alert-dialog fixture entry; the pinned applied count in the dialog-Close drift test is 2 → 5 (three new dialog patches).
  • Changed for the width reversal: dialogDefaultLayout-12521.test.tsx (the short form has no grid; the span: 'full' case uses a nine-field section and still expects the wide ladder), dialogContainerColumns-34607.test.tsx (the light form is lg with ladder [1,1,1]; new describe with 7 cases: the predicate (6 → one column; 7, 8, 9 → not); six flat fields → one column lg; seven → as before (xl, two columns); undeclared sections of six in all → one column; a declared form columns as written; one declared section keeps the dialog as it was; an authored modalSize wins), fieldGroupSections.test.tsx (host-aware: the modal draws no @md:grid-cols-2, the drawer still does), modalFieldGroups.test.tsx.
  • Changed for the surface: subformHosts.test.tsx (bg-card, sm:px-5), snapshot-critical.test.tsx.snap (dialog classes), FormSectionNav.test.tsx (the header-border check waits for layout; timing only).
  • New: modalMaximize-34604.test.tsx describe 「Create more」 with 10 cases (switch only when the host asks and only on a create; an object-form page schema that writes createMore through ObjectFormContainer gets no switch (fails with the container's createMore: false removed); off → closes and the host is not told to stay; on → stays open, form empty, focus first, saves again; reopens as last left, per object; ⌘↵ and Ctrl+Enter save, Shift or a lone Enter do not; the keycaps; the title icon; no icon → title alone). AppContent.createLandingOriginPlural-11733.test.tsx: create-more stays on the list and refreshes it (fails with the outcome.createMore branch removed).
  • No test deleted or skipped.
  • Local runs: @object-ui/plugin-form 2,723 passed before the new pins, then the changed and new files (modalMaximize-34604 20 passed, the width files, the host-parity files) passed; @object-ui/components 1 failure, the dialog snapshot, regenerated in 6e8a3744; scripts/__tests__/shadcn-local-patches.test.ts passed. type-check (src and tests) clean for plugin-form, components and app-shell; ESLint on every changed file: no errors. After e86a699e: @object-ui/plugin-form 2,732 passed / 1 skipped. @object-ui/console 3,470 passed; @object-ui/fields 4,717 passed / 7 skipped; the @object-ui/app-shell suite outran the local 25-minute limit, and CI's Test UI (16 shards, green on 2019d2ce) is its reading.

Browser evidence (CRM example, console, zh-CN)

Before and after screenshots: /mnt/project-files/build-seat1/35980/before/ and after/ (seat-side folder; script shots.cjs, flows.cjs).

Reading Before (be91bfc2) After
Create dialog, 4 fields, 1280 light 1024×356, radius 20, bg rgb(246,246,249), overlay 35% + blur(8px) saturate(1.4), controls 40, title 18 672×422, radius 12, bg white, overlay 10%, no backdrop filter, controls 32, title 16, one column
Same, 1280 dark grey card, blurred overlay bg rgb(24,24,27), overlay 40%, no backdrop filter
Same, 375 light / dark full-screen sheet full-screen sheet, radius 0, controls 44
13-field object (crm_lead), 1280 two columns, 1024 two columns, 1024 (unchanged)
Delete confirmation, light / dark not measured (upstream sm:rounded-lg; the old global rule matched role="dialog", not alertdialog) radius 12, white / rgb(24,24,27), buttons 32
Filter popover radius 20 (old global rule) radius 20 (popper rule)
6 fields, 1366×768 (two demo fields added to crm_contact locally, not committed) — 672×566, one column, nothing scrolls, 「创建」 visible
8 fields, 1366×768, measured at the earlier threshold of eight to inform the choice (four demo fields added to crm_account locally, not committed; at six, eight fields draw two columns as before) — 672×691 (the dialog's height cap), the body scrolls 27px: the 8th field's control is cut at the bottom; 「创建」 stays visible in the fixed footer
Same at 1366×657 (a 768px screen less the browser's own bars) — 6 fields: 566, nothing scrolls; 8 fields: 591 cap, the body scrolls 127px (about the last two fields); 「创建」 stays visible
「连续创建」 on, Ctrl+Enter — dialog stays open, first field empty and focused, list 3 → 4 rows with the new record, toast shown; switch still on after close and reopen

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language).
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB

…ompact controls

Dialog, AlertDialog and the form dialog's MobileDialogContent append the
shared classes in packages/components/src/lib/dialog-surface.ts: a 10%
overlay with no blur, a white card with a hairline edge and a 3px
translucent outer ring, a 12px corner, and 32px controls from sm up. The
two Shadcn primitives reach it through declared patches (alert-dialog gains
its vendored registry fixture, round-trip true).

The console's global [role="dialog"] corner rule is gone: popovers and the
bottom drawer keep their corner by their own containers, and the shared
shadow rule skips the dialog surface. The blurred overlay rule now reaches
drawers only.

Claude-Session: https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB
Co-authored-by: Claude <noreply@anthropic.com>
…eader

ModalForm draws its title at 16px after the object's icon, trims the
dialog's padding to 20px (and drops the stray sm:p-6 gutter the content
kept), and saves on ⌘↵ / Ctrl+Enter, which the Save button shows as
keycaps. A host that passes createMore gets the footer switch on a create:
with it on, a save keeps the dialog open, draws the form again from its
opening values and focuses the first field, and onSuccess is told
{ createMore: true }. The switch is remembered per object in this browser.

The console's record dialog offers it, refreshes the list behind and stays
where it is instead of leaving for the new record. New label form.createMore
in every locale.

Claude-Session: https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB
Co-authored-by: Claude <noreply@anthropic.com>
…e lg size

Up to eight fields, and no columns declared on the form or any section:
the dialog draws one field per row in the narrow lg size (672px). This
reverses, for such a dialog, the two-column floor of objectui#12521 /
#34607 and the two-per-row effect ruling 6204264665 had on its undeclared
sections. Nine fields or more, any declared columns, an authored modalSize
or a maximized dialog keep the earlier layout.

Claude-Session: https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB
Co-authored-by: Claude <noreply@anthropic.com>
…e console's stay

ModalForm: the switch is offered only on a host-requested create, a save
with it on keeps the dialog, empties the form, focuses the first field and
saves again, the choice is remembered per object, ⌘↵ and Ctrl+Enter save
while Shift/Alt chords do not, the Save button names the shortcut, and the
title follows the object's icon. AppContent: a save told to stay neither
closes the form nor lands on the new record (ablated: the pin fails when
the createMore branch is skipped).

Claude-Session: https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
…keeps ruling 6204264665

Claude-Session: https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T10:33Z. The brief handed to the isolated declaration-face reviewer for PR #36038 (owed by the changeset's Clause-②: yes (widening) line). The record follows as its own comment. The single-column threshold (DIALOG_SINGLE_COLUMN_MAX_FIELDS) waits the maintainer's decision card (6 / 8 / keep two columns); a changed threshold gets a delta review.

Contract review brief — PR #36038 @ 2019d2ce6f6442e801647be2164ea9a116548f90 (card #35980)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35980: its body and EVERY comment (rulings and earlier records included)
· PR #36038: its body, its file list, and the net diff against main at 2019d2ce6f6442e801647be2164ea9a116548f90
· the check-runs on 2019d2ce6f6442e801647be2164ea9a116548f90: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36038/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 2019d2ce6f6442e801647be2164ea9a116548f90
Local-runs: none

Face: declaration (owed by the changeset's and the PR body's Clause-②: yes (widening) line; no published spec schema and no governed path in the file list). Inputs read: card #35980 body and both comments (triage; the claim with readings A to F), the PR body and its 36-file list, the net diff be91bfc2..2019d2ce (9 commits), and the 58 check-runs on the head: 44 success, 14 skipped, none failed or pending.

① Derived judgments

Public-surface changes the diff implies, each checked against the package entries on the head:

  1. @object-ui/plugin-form, ModalFormSchema.createMore?: boolean (type exported from index.tsx). Optional, off by default, read only when === true and mode === 'create'. Right: an additive widening, named in the Clause-② line.
  2. @object-ui/plugin-form, ModalFormSchema.onSuccess gains an optional second parameter outcome?: { createMore?: boolean }. ModalForm passes it only on the createMoreOn branch, so a host that does not opt in is never called with two arguments, and a one-parameter callback stays assignable. Type Check UI is green across every in-repo host. Right: additive, named.
  3. @object-ui/i18n, new key form.createMore in all eleven packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant), plus the provider-less English default in ModalForm. Right: additive, named.
  4. dialogDrawsSingleColumn and DIALOG_SINGLE_COLUMN_MAX_FIELDS (autoLayout.ts), createMore.ts (all its exports) and focusFirstEditableField (newly exported from initialFieldFocus.ts): none of them is on index.tsx or core.ts, and core.ts's closure gains no module. Right: the PR's "neither helper is on the package entry" claim holds.
  5. @object-ui/components, lib/dialog-surface.ts: not re-exported from src/index.ts. Right: internal. Its effect is on the rendered output of the published Dialog/DialogOverlay/DialogContent, AlertDialog* and MobileDialogContent. Through cn, the appended tokens replace bg-background, sm:rounded-lg, shadow-lg and the overlay's bg-black/80, and the call site's className still comes last. That is a change to visual defaults, not to types or an accept-set. The changeset's developer section names it. Right that it is not on the Clause-② line.
  6. should-fix, an accept-set reach the Clause-② line leaves out. ObjectFormContainer's formType: 'modal' arm spreads ...schema into ModalForm, and ObjectFormSchema extends BaseSchema with its [key: string]: any. So an object-form page schema that writes createMore: true now gets the switch at runtime. With the switch on, the container's useContainerSaveFeedback handler drops the outcome argument: the author's onSuccess gets the record alone while the dialog stays open. This is an undeclared runtime widening of the object-form renderer, the "admitted, never examined" shape. Fix it either by naming it on the Clause-② line or by keeping createMore (and the outcome) off the container's modal arm.
  7. nit: DIALOG_COMPACT_CONTROLS (sm:[&_.h-10]:h-8 sm:[&_.h-10]:py-1 sm:[&_.h-10.w-10]:w-8) reaches every .h-10 descendant of any dialog in the published primitives, for example a 40px avatar or icon tile or a third-party element, and not only "inputs, selects and buttons" as the changeset says. A non-square h-10 element also gains py-1. The changeset under-describes the reach.
  8. nit: the dialog-surface marker class has become a DOM contract between @object-ui/components and the console's global CSS ([role="dialog"]:not(.dialog-surface)), and no exported name carries it. A rename on one side silently re-applies the console shadow on the other.
  9. nit: the changeset says "⌘↵ (Ctrl+Enter) saves the dialog". The handler is on the flat arm's content only. The master-detail arm, which also ignores 「Create more」 as its jsdoc says, does not take the shortcut.

The rest of the diff is internal behaviour that its pinned tests cover: the console's index.css rules, AppContent's outcome.createMore branch, the shadcn patch set with its vendored alert-dialog fixture, and the width rule. Each pin the PR body lists was confirmed against the diff, and no test is deleted or skipped.

② Semver level

  • Changeset .changeset/35980-dialog-surface.md: @object-ui/components, @object-ui/plugin-form, @object-ui/i18n at patch. It carries Clause-②: yes (widening) and Metadata-protocol: none, both line-initial and the same as the PR body. createMore is not a metadata key an author writes into a spec form view (item 6 is a renderer index-signature reach, not protocol), so Metadata-protocol: none holds. AGENTS.md (Landing §3): none takes patch, and a non-protocol widening ships patch. The level is right. Check Changeset is green.
  • Clause-②: yes (widening) is right for items 1 to 3. Nothing is removed or narrowed, so no BREAKING banner and no ADR-0087 marker is owed. The line is incomplete only by item 6.
  • should-fix, the packages the changeset names: the diff also moves @object-ui/console, which is published (publishConfig.access: public, ships dist): apps/console/src/index.css loses the global dialog corner and blur reach, and its bundled app-shell behaviour changes. It also moves @object-ui/app-shell (private, privatePackages.version: true): AppContent.tsx gains the create-more stay branch. Neither is in the changeset frontmatter. The repo's own precedent names both for such edits (#35986/35411 and #35961 name @object-ui/console; 35050-related-new-autofill.md names app-shell and console). The level does not change, because everything sits in one fixed group at patch, but the console's CHANGELOG would ship without this entry. Add '@object-ui/console': patch and '@object-ui/app-shell': patch.
  • UI Published Artifacts is skipped on this head. The PR body's measurement of the built dist/ModalForm.d.ts is the dev's local reading, and no check-run reproduced it. Items 1, 2 and 4 were instead checked against the source entries on the head, which is sufficient for this face.

③ Boundary flags

  • Escalated, waiting on the maintainer: the single-column threshold. DIALOG_SINGLE_COLUMN_MAX_FIELDS = 8 is the coordinator's proposal ("协调席自己加的"), not the maintainer's. The maintainer is choosing between 6, 8 and keeping two columns, and the PR body says "Do not land before that answer". This record judges the head as it stands. Landing waits on that card.
  • What a change would do to the declaration face. Setting the constant to 6 changes nothing public: the constant and its helper are off the entry, and Clause-②, Metadata-protocol and patch all stand. Only the changeset's "at most eight fields" / "Nine fields or more" prose (it ships as CHANGELOG text), the PR body, the docblock and the 8/9 test pins need editing. Reverting 3612541e likewise leaves Clause-②, the level and the public surface unchanged, since the widening comes from ee705f72a. But it is not "a revert of that commit alone": a141be6e9 edits only lines 3612541e added (the autoLayout.ts docblock), so the revert conflicts unless a141be6e9 goes with it. The changeset's third "What a user sees" bullet (from bdd6c6558) must also be dropped, or the CHANGELOG ships a false claim.
  • Escalated with the threshold: the ruling 6204264665 framing. The width commit's docblock first said the change reverses "the two-per-row effect" of the section-columns ruling. a141be6e9 rewords it to say the ruling is kept. The ruling's text lives on objectui#12521, which is outside this review's inputs, so the reframing is not verified here. The maintainer should read both wordings on the same decision card.
  • Claim readings A to F (card comment of 2026-11-21T08:26Z):
    • A, answered: popovers keep the 20px corner through the popper-wrapper child selector ([data-radix-popper-content-wrapper], then its [role="dialog"] child) and the shared shadow through :not(.dialog-surface).
    • B, answered with a deviation: the drawer overlay is not moved into the drawer component. The .bg-black\/80 blur rule stays in the console CSS and now reaches drawers only, because twMerge drops bg-black/80 from dialog overlays. The look is unchanged, and the card's acceptance (no [role="dialog"] corner or blur rule) is met. The claim's wording is stale.
    • C, answered: at 375px the dialog is still a full-screen sheet with radius 0, since the corner is sm: only.
    • D, disclosed: the outer ring is a shadow band with no blur, and its outer corner is 15px against the card's 16px. The dev gives a reason: a ring that is part of the element would be cut by the dialog's overflow-hidden. A design call, visible to the maintainer in the PR body.
    • E, answered: the title icon is resolveIcon(objectSchema.icon), aria-hidden.
    • F, answered: 「Create more」 is on the list's 「New」 and on the related-list child create, not on a lookup's 「+ New」 (the host opts in with createMore: true). "按人记住" is per object, per browser, in guarded localStorage. The card lists that wording among the coordinator's own additions, and the maintainer summary states the per-browser reading.
  • The claim's surface listed "one optional ModalFormSchema property in @object-ui/types". The property landed in @object-ui/plugin-form, and @object-ui/types is untouched. The PR body states this correctly, and the changeset names the right package.
  • open_questions: the PR body and the claim carry no such block. The dev flags are the threshold, the reversal of the objectui#12521/表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607 default and readings A to F, all answered or escalated above.
  • SQL push-down: no finding. The diff adds no data access, id materialisation or in-app join. After a create-more save, the list refresh is a refreshKey bump that re-runs the list's own query, and a child task relies on the invalidation bus.

Implemented-by: claude/project-thread-fpkoyo
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

… names console and app-shell

Claude-Session: https://claude.ai/code/session_01L6bhgWL2r2CuFr34ENybDB
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 3fc549f1e9d1acd58d318e84e9f80ae71917a769
Local-runs: none

This is a delta review on the declaration face. It reads only 2019d2ce..3fc549f1, one commit (3fc549f1e), 4 files, +31/-5. The record on 2019d2ce6f6442e801647be2164ea9a116548f90 (PASS, two should-fix, three nits) stands for everything outside this delta. The check-runs on the new head were still running when this record was written: 9 success, 15 skipped and 19 in progress, among them Type Check UI, Lint UI, Check Changeset and Build & E2E UI, with the UI test shards not yet planned. None had failed. Those conclusions are the gate verdicts and are not pre-empted here. Landing needs them green.

① Derived judgments

  • Earlier finding S2 (should-fix, the object-form reach): resolved.
    • ObjectFormContainer's formType: 'modal' arm now sets createMore: false after the ...schema spread. In an object literal the later key wins, so a stray createMore: true that BaseSchema's index signature admits no longer reaches ModalForm.
    • The renderer's accept-set is back to what it was before this PR, so nothing on that face needs declaring.
    • New pin in modalMaximize-34604.test.tsx: ObjectFormContainer with formType: 'modal', mode: 'create', createMore: true draws no switch.
    • Ablation, by reading only: without the new line, the spread hands createMore: true and mode: 'create' to ModalForm, createMoreOffered is true, the switch renders and the pin fails. So the pin guards the line. The dev's ablation run was not repeated here.
    • ObjectFormContainer is a named export of its module. The test's import adds nothing to the package entry.
    • The drawer arm's spread does not matter here, because DrawerForm does not read createMore.
  • Earlier nit, the h-10 reach: resolved in wording. The changeset now names "any other h-10 element such as a 40px avatar". The behaviour is unchanged, as intended.
  • Earlier nit, the dialog-surface marker contract: resolved in wording. The dialog-surface.ts docblock names the contract with apps/console/src/index.css and the rename-both-sides rule. The changeset's developer section tells a host stylesheet to skip the class. No exported name is added, and none is owed.
  • Earlier nit, ⌘↵ in the master-detail dialog: resolved in wording. The changeset now says a master-detail dialog takes neither the shortcut nor 「Create more」, which matches the code.
  • The delta adds no other public-surface change. No new finding.

② Semver level

  • Earlier finding S1 (should-fix, packages missing from the changeset): resolved.
    • The frontmatter now adds '@object-ui/app-shell': patch and '@object-ui/console': patch, alongside components, plugin-form and i18n at patch.
    • Both packages are in the one fixed group, so the level is unchanged. The console's CHANGELOG now carries the entry.
  • The Clause-②: yes (widening) and Metadata-protocol: none lines are unchanged in the changeset and in the PR body. That is correct:
    • S2 was closed by removing the reach, not by declaring it, so the line's three widenings are complete again: ModalFormSchema.createMore, the optional onSuccess outcome and form.createMore.
    • The changeset's developer bullet now says the object-form modal arm keeps the switch off, which is accurate.
  • patch stays right under AGENTS.md Landing §3. Nothing is removed or narrowed, and no BREAKING banner or ADR-0087 marker is owed.

③ Boundary flags

  • Threshold: still escalated, unchanged by this delta. DIALOG_SINGLE_COLUMN_MAX_FIELDS = 8 is untouched and still waits on the maintainer's choice of 6, 8 or two columns.
    • Setting it to 6 changes no public surface, Clause-② line or level. Only the eight/nine wording in the changeset, the PR body, the docblock and the test pins would change.
    • Reverting 3612541e needs a141be6e9 reverted with it, and the changeset's single-column bullet dropped.
  • Ruling 6204264665 framing: still escalated to the same maintainer card. It was not verifiable from this review's inputs.
  • SQL push-down: no finding. The delta adds no data access.
  • No new dev flag or open_questions entry in the delta.

Implemented-by: claude/project-thread-fpkoyo
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: e86a699e9640c35f124eb92d03e72a9cae0983e4
Local-runs: none

This is the second delta review on the declaration face. It reads only 3fc549f1..e86a699e: one commit (e86a699e9), 4 files, +31/-29. The earlier records on 2019d2ce and 3fc549f1 (both PASS) stand for everything outside this delta. Two more inputs were read:

① Derived judgments

  • The change matches the ruling. DIALOG_SINGLE_COLUMN_MAX_FIELDS is set from 8 to 6, and dialogDrawsSingleColumn's logic is untouched. The ruling's four cases trace through the code as follows:

    • 6 fields: the predicate is true, so the dialog draws one column at lg (sm:max-w-2xl).
    • 7 and 8 fields: the predicate is false and the dialog falls back to the #34607 path. dialogUndeclaredColumns gives min(max(2, inferColumns(n) = 2), 3) = 2, and the size is inferModalSize(2), which is xl. That is two columns, exactly what main draws for these counts.
    • 9 or more fields: unchanged.
    • Declared columns, authored modalSize, maximized: these short-circuit before the predicate is read, as before.
  • The pins moved to the boundary.

    • The predicate is pinned true at 0, 1, 5 and 6 and false at 7, 8 and 9.
    • "Six flat fields" expects lg and the ladder [1,1,1].
    • "Seven flat fields" expects xl and [2,2,2]. That is the main ladder for seven fields. The old nine-field pin's [2,3,3] was the inferColumns(9) = 3 tier, so this change in the expected ladder is correct.
    • The fixtures for "undeclared sections in all" and "one declared section" are re-cut to six fields, and they keep what they test.
  • No public surface changes. The constant and its helper are still off index.tsx and core.ts. No type, export, i18n key or accept-set moves.

  • nit: two test-only comments in dialogDefaultLayout-12521.test.tsx still carry the old number:

    • line 158 says "at most eight fields and nothing declared is one column";
    • line 218 says "Nine fields: past the one-column dialog".

    Their assertions remain correct under six: the first is a two-field form, the second a nine-field section. This has no effect on correctness or the contract, and it can be fixed whenever that file is next touched.

② Semver level

  • The changeset's frontmatter is unchanged: components, plugin-form, i18n, app-shell and console, all at patch. Its Clause-②: yes (widening) and Metadata-protocol: none lines are unchanged, and so is the PR body's Clause-② line. That is right: the threshold is a renderer default behind an unexported constant, and none of the line's three widenings depends on it. The level stays patch (AGENTS.md Landing §3).
  • Changeset bullet 3 now matches the code and the ruling: "at most six fields", "Seven fields or more ... as before", citing the ruling. It ships as CHANGELOG text and is accurate. The PR body's lead paragraph and its test list agree with it.

③ Boundary flags

  • Threshold: answered. The escalation from the earlier records is closed by ruling of record 7061696632, and the head implements its value.
  • Ruling 6204264665 framing: answered. The ruling of record says the maintainer was asked after a review that found the change reverses only the development default "at least two columns" (objectui#12521, 表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607), and not ruling 6204264665. The PR body and the autoLayout.ts docblock carry that framing. The escalation is closed.
  • SQL push-down: no finding. The delta adds no data access.
  • No new dev flag or open_questions entry in the delta.

Implemented-by: claude/project-thread-fpkoyo
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head e86a699e96 · 2026-11-21T11:41Z

Full read at e86a699e96: 37 files, +1041/−69. The face is Clause-②: yes (widening) (ModalFormSchema.createMore?, the optional onSuccess outcome, and form.createMore), Metadata-protocol: none. It does not touch packages/spec/src/** or docs/adr/**. The seat's declaration L2 passed three times (7061385428, delta 7061458238, delta 7061875147 at the six threshold), so this is the L1.

Body-only, before landing

  • First line. The body opens with the blockquote, and Fixes #35980 comes after it. l1-face reads the first line after the attribution, finds no card there, and so also counts Fixes #35980 as binding an "other" card. Moving the Fixes #35980 line above the blockquote clears both flags. It is a body edit only, so no code re-read is owed and this ACCEPT stands.

Checked and fine

  • Shape. Draft, base main. Fixes #35980 is right: the surface, the narrow column for short forms (at the six of ruling 7061696632, which reverses the perf(security): batch the derived half of bootstrapSystemCapabilities, unnarrowed #12521/表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607 development default and keeps ruling 6204264665), and 「Create more」 with ⌘↵ deliver the card.
  • The surface.
    • dialog-surface.ts is applied through six declared Shadcn patches on dialog / alert-dialog. The surface classes come before the caller's className, so a caller still wins.
    • alert-dialog's registry fixture is pinned by sha256, and the patch test's applied count is 2 → 5.
    • mobile-dialog-content appends the same surface, and the phone sheet keeps its max-sm: 44px targets.
    • In the console CSS, the dialog radius rule now keys on [data-radix-popper-content-wrapper] > [role="dialog"], [data-vaul-drawer], the shadow rule skips .dialog-surface, and the blur reaches drawer overlays only.
    • The edge-sheet test pins all four sheet sides.
  • Width. dialogDrawsSingleColumn is true at ≤ 6 laid-out fields with no declared columns on the form or any section. It is skipped when maximized or when modalSize is authored, and it then takes inferModalSize(1) with one undeclared column. The 7-case describe covers 6 / 7 / 8 / 9 fields, sections, a declared form, one declared section and an authored size.
  • Create more.
    • Offered only when the host asks and mode === 'create'.
    • ObjectFormContainer forces createMore: false, so a page schema's stray key cannot turn it on, and this is pinned with an ablation.
    • On a save with the switch on: onSuccess(result, { createMore: true }), isDirty false, a keyed remount of the content, and focus retried by rAF onto the first editable field. The second save is a second create with the new values, not an update (modalMaximize-34604).
    • The localStorage preference is per object, and every access is guarded.
    • In AppContent, outcome.createMore toasts, bumps the list's refresh key (not for a child task, whose related lists refetch on the bus) and returns without closing.
  • ⌘↵ / Ctrl+Enter.
    • isSubmitShortcut refuses Shift, Alt and an IME composition.
    • The handler acts only on a keydown inside this dialog's own DOM, so a portalled discard or conflict alert is excluded, and not while submitting or uploading.
    • It calls requestSubmit, so validation runs.
    • The button carries aria-keyshortcuts, and the keycaps are hidden on the phone.
    • The master-detail arm takes neither, as the changeset says.
  • Strings. form.createMore is in all 11 packs, with zh-Hant regenerated.
  • Changeset. It lists five packages, all patch, with the widening and both side effects (the h-10 compact rule reaching every 40px element in a dialog, and the master-detail exception) named. I read it sentence by sentence against the diff.
  • Evidence. Before and after screenshots are in build-seat1/35980/: 1280 light and dark, 375 light and dark (full-screen sheet, controls 44), the 13-field object unchanged, the delete confirmation, the filter popover still at 20px, 6 fields at 1366×768 with nothing scrolling, and the 「连续创建」 + Ctrl+Enter flow (list 3 → 4).
  • Overlap. feat(fields): typed values edit flat in their list cell, record pickers open in place, a rating is set by key (#35688 S3) #36045 (in-cell editor, in review) flattens its cell layer with rounded-none! / shadow-none! against the console's [role=dialog] important rules. After this PR, the cell layer, a Radix popover, still meets the new [data-radix-popper-content-wrapper] > [role="dialog"] radius rule and the floating shadow rule. feat(fields): typed values edit flat in their list cell, record pickers open in place, a rating is set by key (#35688 S3) #36045's important utilities still win, so the two compose. Whichever lands second merges main.
  • Gates. At e86a699e96: 47 success and 15 expected skips. The cancelled Check Changeset and PR-body guard runs (11:20–11:21Z) were each superseded by a success on the same head (11:21–11:23Z). mergeable_state is clean.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Regen-provenance: declaration-face record 7061875147 (delta PASS) · e86a699e9 → 38a01d033 · diff <(git diff MB_OLD e86a699e9 -- . ':!.changeset') <(git diff MAINPARENT 38a01d033 -- . ':!.changeset') → empty once index and @@ offset lines are set aside (MB_OLD be91bfc2f, MAINPARENT 8145424b5) · 2026-11-21T11:53Z

38a01d033 is a merge of main with an empty --remerge-diff, so the PR's own change is byte-identical to the reviewed head and the record carries over (contract-review.md L49). The changeset 35980-dialog-surface.md is byte-identical on both (same diff hash). The merge brought in #36040's locale packs, and each pack still carries exactly one form.createMore. Check-runs on 38a01d033 are read at landing, after L1-c's merge-only re-check.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head 38a01d0336 · 2026-11-21T12:13Z

Merge-only delta: e86a699e → 38a01d03, the merge of main through 8145424b (#36040). My full-read ACCEPT at e86a699e96 (7062067474) covers the rest.

  • The merge. git show --remerge-diff 38a01d03 is empty: nothing was resolved by hand. The PR's own diff against its merge base matches the earlier one hunk for hunk. Only the index blob lines of the eleven ui/packages/i18n/src/locales/*.ts files differ, because feat(i18n): the sign-in page and the in-app language menu offer one list, every interface language #36040 changed those files elsewhere. The changeset is identical.
  • The body item from the ACCEPT is done. The first line after the attribution is now Fixes #35980, so l1-face's first-line and other-card flags clear.
  • Gates. At 38a01d0336: 45 success, 13 expected skips, 0 failed, 0 pending. mergeable_state is clean and l1-face is CLEAN.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T12:14Z · The b1-CX PR for #35980: dialogs share one surface (radius, padding, header and footer), a create dialog lays out six fields or fewer in a single column (the maintainer's ruling 7061696632), and the create dialog offers 「保存并新建」. Clause-②: yes (widening). The seat's declaration-face L2 at TIER_DEFAULT read PASS on 2019d2ce (7061385428), 3fc549f1 (7061458238) and e86a699e (7061875147). 38a01d033 (this head) is a merge of main with an empty --remerge-diff; the seat's regen-provenance on the PR shows the PR's own diff byte-identical, so the record carries over. L1-c ACCEPT 7062067474 on e86a699e and merge-only ACCEPT 7062423085 on this head. check-governed-merges --pr 36038 reads NOT governed (+1041/−69). landing-k could not answer (no Test Core shard ran on this head), so the seat read K by hand: 3 first-parent commits since the merge base, under 15; main since then touches no translations/ bundle and three skills/ files this PR does not touch. On this head, 45 check-runs are success, 13 are skipped and none failed; mergeable clean. L2 nit left unpushed so CI does not run again: stale 8/9 comments in dialogDefaultLayout-12521.test.tsx. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35980.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 12:15
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 035a12c Nov 21, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-fpkoyo branch November 21, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants